package cau.se.project.view;

import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Shell;

public class ExitItemListener implements SelectionListener {

	private Shell shell;
	@Override
	public void widgetSelected(SelectionEvent e) {
		shell.close();
	}

	@Override
	public void widgetDefaultSelected(SelectionEvent e) {
		shell.close();
	}
	
	public ExitItemListener(Shell shell){
		this.shell = shell;
	}
}
